﻿<%@ page title="" language="C#" masterpagefile="~/Page/MasterPage.master" autoeventwireup="true" inherits="Page_News_NewsList, App_Web_newslist.aspx.4b3d601d" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../../CSS/PageStyle.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="FrameStyle">
        <div class="PageTitleStyle">
            <asp:Image ID="bgpicNews" runat="server" ImageUrl="~/Images/News/bgpicNewsListTop.png" />
        </div>
        <div id="NewsList">
            <div class="bgTop">
            </div>
            <div class="bgRepeat">
                <asp:GridView ID="gvNewsList" runat="server" AllowPaging="True" PageSize="15" 
                    AutoGenerateColumns="False" EmptyDataText="No Data" 
                    CssClass="DataViewStyle" GridLines="None" 
                    onpageindexchanging="gvNewsList_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField HeaderText="Title">
                            <ItemTemplate>
                                <asp:HyperLink ID="HyperLink1" runat="server" class="DataViewTitleStyle"
                                    NavigateUrl='<%# Eval("NEWS_ID", "NewsInfo.aspx?newsID={0}") %>' 
                                    Text='<%# Eval("NEWS_TITLE") %>'></asp:HyperLink>
                            </ItemTemplate>
                            <ControlStyle Width="280px" />
                            <HeaderStyle CssClass="DataHearderStyle" ForeColor="#018736"/>
                            <ItemStyle CssClass="DataItemStyle" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Poster">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("NEWS_POSTER_ID") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("NEWS_POSTER_ID") %>'></asp:Label>
                            </ItemTemplate>
                            <ControlStyle Width="100px" />
                            <HeaderStyle CssClass="DataHearderStyle" ForeColor="#018736"/>
                            <ItemStyle CssClass="DataItemStyle" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Posted">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("NEWS_DATE") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label2" runat="server" Text='<%# Bind("NEWS_DATE") %>'></asp:Label>
                            </ItemTemplate>
                            <ControlStyle Width="100px" />
                            <HeaderStyle CssClass="DataHearderStyle" ForeColor="#018736"/>
                            <ItemStyle CssClass="DataItemStyle" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
            <div class="bgBottom">
            </div>
            <div class="ButtonAndBlankStyle">
                <table>
                    <tr>
                        <td width="445px">
                        </td>
                        <td width="85px">
                            <asp:ImageButton ID="btnNewsBack" runat="server" 
                                ImageUrl="~/Images/btnPublicBack.png" onclick="btnNewsBack_Click" 
                                CausesValidation="False" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div id="PostNews">
            <div class="TopStyle">
                Post News
            </div>
            <div class="bgTop">
            </div>
            <div class="bgRepeat">
                <table>
                    <tr>
                        <td class="TableHeaderStyle">
                            Title:
                        </td>
                        <td class="TableStyle">
                            <asp:TextBox ID="txtPostNewsTitle" runat="server" CssClass="TextboxStyle" 
                                Width="355px"></asp:TextBox>
                        </td>
                        <td class="validatorPostTable">
                            <asp:RequiredFieldValidator ID="rfvPostNewsTitle" runat="server" ErrorMessage="Required."
                                Font-Bold="True" Font-Size="Small" ForeColor="#CC0000" ControlToValidate="txtPostNewsTitle"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="TableHeaderStyle">
                            Keywords:
                        </td>
                        <td class="TableStyle">
                            <asp:TextBox ID="txtPostNewsKeywords" runat="server" CssClass="TextboxStyle" 
                                Width="355px"></asp:TextBox>
                        </td>
                        <td class="validatorPostTable">
                            <asp:RequiredFieldValidator ID="rfvPostEventsKeywords" runat="server" ErrorMessage="Required."
                                Font-Bold="True" Font-Size="Small" ForeColor="#CC0000" ControlToValidate="txtPostNewsKeywords"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="TableHeaderStyle" valign="top">
                            Details:
                        </td>
                        <td colspan="2" class="TableStyle">
                            <asp:TextBox ID="txtPostNewsDetails" runat="server"
                                TextMode="MultiLine" CssClass="TextboxStyle" Height="100px" Width="415px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="TableHeaderStyle">
                            &nbsp;
                        </td>
                        <td class="TableStyle">
                            &nbsp;
                        </td>
                        <td class="validatorPostTable">
                            <asp:RequiredFieldValidator ID="rfvPostNewsDetails" runat="server" ErrorMessage="Required."
                                Font-Bold="True" Font-Size="Small" ForeColor="#CC0000" ControlToValidate="txtPostNewsDetails"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="bgBottom">
            </div>
            <div class="ButtonAndBlankStyle">
                <table>
                    <tr>
                        <td width="445px">
                        </td>
                        <td width="85px">
                            <asp:ImageButton ID="btnNewsListPostSubmit" runat="server" ImageUrl="~/Images/btnPublicSubmit.png"
                                OnClick="btnNewsListPostSubmit_Click" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</asp:Content>
